﻿using Swashbuckle.AspNetCore.Annotations;
using System.Collections.Generic;

namespace AccountManagement;

public class ProfileResult
{
    [SwaggerSchema("用户名")]
    public string UserName { get; set; }
    [SwaggerSchema("头像")]
    public string Avatar { get; set; } = "/avatar.png";
    [SwaggerSchema("手机号码")]
    public string PhoneNumber { get; set; }
    [SwaggerSchema("姓名")]
    public string Name { get; set; } = "未登录";
    [SwaggerSchema("昵称")]
    public string NickName { get; set; } = "未登录";
    [SwaggerSchema("所属组织")]
    public string Organization { get; set; }
    [SwaggerSchema("角色")]
    public string[] Roles { get; set; }
    [SwaggerSchema("状态")]
    public bool IsEnabled { get; set; }
    [SwaggerSchema("是否已登录")]
    public bool IsLogin { get; set; } = false;
    [SwaggerSchema("是否主机")]
    public bool IsHost { get; set; } = false;
    public IEnumerable<IdentityRolePermissionResult> Permissions { get; set; }
}
